#ifndef SVE_SERVER_H
#define SVE_SERVER_H
#include <QtNetwork>

/*QT_BEGIN_NAMESPACE
class QTcpServer;
class QNetworkSession;
QT_END_NAMESPACE*/


class sve_server : public QObject
{
    Q_OBJECT

public:
    sve_server(QWidget *parent = 0);

public slots:
    void serverOpen(QWidget *parent);
    void serverClose();
    void sendFortune();

private:


    QTcpServer *tcpServer;
    QStringList fortunes;
    QNetworkSession *networkSession;
};
//! [0]

#endif



/*

#include <QStringList>

#include <QTcpServer>


{
    Q_OBJECT

public:
    sve_server(QObject *parent = 0);

protected:
    void incomingConnection(int socketDescriptor);

private:
    QStringList fortunes;

};

#endif // SVE_SERVER_H*/
